﻿using HCQ2_Model.SelectModel;
using HCQ2_Model.Student;
using HCQ2_Model.ViewModel;
using HCQ2_Model.ViewModel.SysAdmin;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HCQ2_IBLL
{
    /// <summary>
    /// 学生相关
    /// </summary>
    public partial interface IT_StudentBLL
    {
        /// <summary>
        /// 获取学生列表
        /// </summary>
        /// <param name="query"></param>
        /// <returns></returns>
        TableModel GetStudentList(StudentListQuery query);

        /// <summary>
        /// 新增学生信息
        /// </summary>
        /// <param name="edit"></param>
        /// <returns></returns>
        int addStudent(StudentEdit edit);

        /// <summary>
        /// 编辑学生信息
        /// </summary>
        /// <param name="edit"></param>
        /// <returns></returns>
        int updateStudent(StudentEdit edit);

        /// <summary>
        /// 删除学生
        /// </summary>
        /// <param name="id"></param>
        void delStudent(int id);
        /// <summary>
        /// 获取学校下面的班级
        /// </summary>
        /// <param name="schoolName"></param>
        /// <returns></returns>
        List<ListBoxModel> ListBySchoolClass(string schoolName);

        /// <summary>
        /// 导入学生
        /// </summary>
        /// <param name="tempPath">导入文件</param>
        /// <param name="schoolName">学校名称</param>
        /// <param name="classId">班级名称</param>
        /// <param name="currentUserId">操作用户</param>
        List<string> importStudent(string tempPath, string schoolName, int classId, string currentUser, ref List<UserModel> userModel);

        /// <summary>
        /// 创建学生对应的账号
        /// </summary>
        /// <param name="userList"></param>
        void createStudentUser(List<UserModel> userList);
    }
}
